<h1>{if isset($dictionaryObj) && $dictionaryObj instanceof MfDictionary}Edycja{else}Dodwanie{/if} {if 'DictionaryController'|static:'PARSE_LANG'}Tłumaczenia{else}Komunikatu{/if}</h1>

<div class="mainOptions"><h2><a href="#" class="colapse">Ogólne</a></h2>
    <div class="optionContent" style="display: block;">
        <form action="" method="post" enctype="multipart/form-data">
            <table width="100%" cellspacing="0" cellpadding="0" border="0" class="commonTable">
                <tbody>
                    <tr>
                        <th><strong>Etykieta</strong></th>
                        <td>
                            {formField type="text" name="label" id="name" obj='dictionaryObj' func='getLabel' errorClass="validate"}
                        </td>
                    </tr>
                    <tr>
                        <th>Tłumaczenie</th>
                        <td>
							{if isset($dictionaryObj) && $dictionaryObj instanceof MfDictionary}
								{insertFckEditor width='620' height='380' id='translation' name='translation' toolbar='Formix' value=$dictionaryObj->GetTranslation()}
							{else}
								{insertFckEditor width='620' height='380' id='translation' name='translation' toolbar='Formix'}
							{/if}
							{formError errorClass='validate' name='translation'}
							{*formField type="textarea" name='translation' cols="10" rows="10" obj='dictionaryObj' func='getTranslation' errorClass='validate'*}
                        </td>
                    </tr>
					{if 'DictionaryController'|static:'PARSE_LANG'}
						<tr>
							<th>Język</th>
							<td>
								{formField type='select' name='lang' options='Router'|static:'$arrayLang' obj='dictionaryObj' func='getLang' errorClass='validate'}
							</td>
						</tr>
					{/if}
                </tbody>
            </table>
            <p align="right">
                <input type="submit" value="Zapisz" name="" />
            </p>
        </form>
    </div>
</div>